package com.ling.bean;

import java.io.Serializable;
import java.util.Date;

public class Answer implements Serializable {
    private String id;

    private String userid;

    private String questionid;

    private Integer upvotenum;

    private Integer downvotenum;

    private Date edittime;

    private Boolean top;

    private String answercontent;

    private User user;

    private String questiontitle;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public String getQuestionid() {
        return questionid;
    }

    public void setQuestionid(String questionid) {
        this.questionid = questionid == null ? null : questionid.trim();
    }

    public Integer getUpvotenum() {
        return upvotenum;
    }

    public void setUpvotenum(Integer upvotenum) {
        this.upvotenum = upvotenum;
    }

    public Integer getDownvotenum() {
        return downvotenum;
    }

    public void setDownvotenum(Integer downvotenum) {
        this.downvotenum = downvotenum;
    }

    public Date getEdittime() {
        return edittime;
    }

    public void setEdittime(Date edittime) {
        this.edittime = edittime;
    }

    public Boolean getTop() {
        return top;
    }

    public void setTop(Boolean top) {
        this.top = top;
    }

    public String getAnswercontent() {
        return answercontent;
    }

    public void setAnswercontent(String answercontent) {
        this.answercontent = answercontent == null ? null : answercontent.trim();
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getQuestiontitle() {
        return questiontitle;
    }

    public void setQuestiontitle(String questiontitle) {
        this.questiontitle = questiontitle;
    }
}